CI/GnuComment: enhance PR commenting logic to update existing comments#11763
CI/GnuComment: enhance PR commenting logic to update existing comments#11763sylvestre merged 2 commits intouutils:mainfrom
Conversation
|
@sylvestre How can we test this? |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
This comment was marked as outdated.
This comment was marked as outdated.
|
let's see what happens |
|
It looks like there is a bug (see https://github.com/uutils/coreutils/actions/runs/24334867494/job/71049096034#step:4:44): |
I don't understand why this fails now, but let's add something like: if (!fs.existsSync('./result.txt') || !fs.existsSync('./NR')) {
console.log('Files in workspace:', fs.readdirSync('.'));
throw new Error('Missing result.txt or NR from artifact');
} |
|
Looks like it's working now: #11330 (comment) |
|
@sylvestre This is what I'm seeing for #11922 (comment): Comment created: 2026-04-20T17:25:03Z So it appears the action is working correctly. |
|
oh, my bad, i thought github updated the initial date too |
|
maybe we can do it? |
|
The alternative would be to delete the comment and recreate it, but one of the goals of this change was to minimize notifications. I think the current behavior is fine. |
Closes #11761
Summary
Update GNU testsuite comment workflow to edit a single bot comment instead of creating new ones on each run.
Key change
<!-- gnu-comment-bot -->) to identify bot-generated comments.